coding question on dp

join shbcf.ru